# Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
pkgname=madbomber
pkgver=0.2.5
pkgrel=3
pkgdesc="Clone of Activision's classic Atari 2600 console game Kaboom!"
url="http://www.newbreedsoftware.com/madbomber/"
arch="all"
license="GPL-2.0-or-later"
depends="libmikmod"
makedepends="sdl12-compat-dev sdl_mixer-dev sdl_image-dev"
options="!check" # No testsuite
source="https://github.com/antonialoytorrens/nbs/raw/master/unix/x/madbomber/src/madbomber-$pkgver.tar.gz
	0001-makefile.patch
	0002-fix-chown-syntax.patch
	"

build() {
	make
}

package() {
	make install \
		DATA_PREFIX="$pkgdir"/usr/share/madbomber \
		BIN_PREFIX="$pkgdir"/usr/bin
	install -Dm644 "$builddir"/madbomber.desktop \
	"$pkgdir"/usr/share/applications/madbomber.desktop
	install -Dm644 "$builddir"/madbomber-icon.xpm \
	"$pkgdir"/usr/share/pixmaps/madbomber-icon.xpm
}

sha512sums="
c9e0890f5dede6b031dea544a0a09f5a13dd8f40e23cf7d2dba1ad83322f036da56f5ebc3b5b4d8fc0a6b8973ccfdec29108706e36953a11b0c5768083ce6ced  madbomber-0.2.5.tar.gz
0b3c1d0ad391e23a362c980264aadc1d83194b3353232481cb78598366f70e81c4b3ecf92def87eea24a611ef7ca12cddf75332a6c8d5bc803a826af94bc7a74  0001-makefile.patch
81905c603eea593c93539d5d18919a85037d97434491eb2c240e2ad2624b6b01436e53492078c3fd4599a8761ae3a18c62687dc67e55e293c8658e6b45fdf07a  0002-fix-chown-syntax.patch
"
